/*
 * @Description: 
 * @Author: mmzhang
 * @Date: 2022-04-15 11:10:23
 * @LastEditTime: 2023-01-11 17:25:00
 */

import table from '@/components/dt/table/render.js'
import nameOpt from '@/biz/option/name.js'
import dateOpt from '@/biz/option/date.js'
import Opt from '@/components/dt/info/Opt.js'
import ruleOpt from '@/biz/option/rule.js'
import dt from '@dt/dt'

let _this = null
class ParamsCount {
  constructor(vm) {
    this.opts = {}
    _this = vm
    this.build()
  }
  build() {
    this.opts = {
      countList: [
      {
        title: '认购金额(元)',
        key: 'subscriptionMoney'
      }, {
        title: '认购套数(套)',
        key: 'subscriptionCount'
      }, {
        title: '认购面积(㎡)',
        key: 'subscriptionArea',
        line:true
      }, {
        title: '足未签套数(套)',
        key: 'noContractCount',
        line:true
      }, {
        title: '退订金额(元)',
        key: 'subscriptionBackMoney'
      }, {
        title: '退订套数(套)',
        key: 'subscriptionBackCount'
      }, {
        title: '退订面积(㎡)',
        key: 'subscriptionBackArea'
      }],
      countAreaList: [
      {
        title: '认购套数(套)',
        key: 'subscribeQuantity'
      }, {
        title: '认购面积(㎡)',
        key: 'subscribeArea',
        line:true
      }, {
        title: '调整面积(㎡)',
        key: 'subscribeAdjustmentArea',
        line:true
      }, {
        title: '退订套数(套)',
        key: 'cancelQuantity'
      }, {
        title: '退订面积(㎡)',
        key: 'cancelArea',
        line:true
      }, {
        title: '净值套数(套)',
        key: 'subscribeNetWorthQuantity'
      }, {
        title: '净值面积(㎡)',
        key: 'subscribeNetWorthArea',
        line:true
      }, {
        title: '实际净值套数(套)',
        key: 'actualSubscribeNetWorthQuantity'
      }, {
        title: '实际净值面积(㎡)',
        key: 'actualSubscribeNetWorthArea'
      }],
      countMoneyList: [
      {
        title: '认购套数(套)',
        key: 'subscribeQuantity'
      }, {
        title: '认购金额(元)',
        key: 'subscribeAmount',
        line:true
      }, {
        title: '调整金额(元)',
        key: 'subscribeAdjustmentAmount',
        line:true
      }, {
        title: '退订套数(套)',
        key: 'cancelQuantity'
      }, {
        title: '退订金额(元)',
        key: 'cancelAmount',
        line:true
      }, {
        title: '净值套数(套)',
        key: 'subscribeNetWorthQuantity'
      }, {
        title: '净值金额(元)',
        key: 'subscribeNetWorthAmount',
        line:true
      }, {
        title: '实际净值套数(套)',
        key: 'actualSubscribeNetWorthQuantity'
      }, {
        title: '实际净值金额(元)',
        key: 'actualSubscribeNetWorthAmount'
      }],
      countVal: {
        contractArea: 0,
        contractBackArea: 0,
        contractBackCount: 0,
        contractBackMoney: 0,
        contractCount: 0,
        contractMoney: 0,
        repaymentCount: 0,
        repaymentMoney: 0,
        noContractCount: 0,
        subscriptionArea: 0,
        subscriptionBackArea: 0,
        subscriptionBackCount: 0,
        subscriptionBackMoney: 0,
        subscriptionCount: 0,
        subscriptionMoney: 0
      },
      countActualVal:{
        subscribeQuantity: 0,
        subscribeAmount: 0,
        contractQuantity: 0,
        contractAmount: 0,
        retreatContractQuantity: 0,
        retreatContractAmount: 0,
        subscribeNetWorthQuantity: 0,
        subscribeNetWorthAmount: 0,
        actualSubscribeNetWorthQuantity: 0,
        actualSubscribeNetWorthAmount: 0,
        contractNetWorthQuantity: 0,
        contractNetWorthAmount: 0,
        subscribeArea: 0,
        contractArea: 0,
        retreatContractArea: 0,
        subscribeNetWorthArea: 0,
        actualSubscribeNetWorthArea: 0,
        contractNetWorthArea: 0,
        cancelQuantity: 0,
        cancelAmount: 0,
        cancelArea: 0,
        subscribeAdjustmentArea: 0,
        subscribeAdjustmentAmount: 0,
        contractAdjustmentAmount: 0,
        contractAdjustmentArea: 0
      },
      tips: '汇总数据不包含待审核及已驳回数据',
      tipsArea: '（1）总销数据不包含“待审核”及“已驳回”订单数据；<br/>（2）认购面积为认购单提交时的“初始面积”；<br/>（3）如订单有面积调整，则退订面积为“认购单调整后面积”；<br/>（4）净值面积=认购面积-退购面积+调整面积；<br/>（5）实际净值面积=认购面积-退购面积-退签面积+调整面积 <br/> 注：调整面积存在正负调整，统一使用加法计算',
      tipsMoney: '（1）总销数据不包含“待审核”及“已驳回”订单数据；<br/>（2）认购金额为认购单提交时的“初始金额”；<br/>（3）如订单有金额调整，则退订金额为“认购单调整后金额”；<br/>（4）净值金额=认购金额-退购金额+调整金额；<br/>（5）实际净值金额=认购金额-退购金额-退签金额+调整金额<br/>注：调整金额存在正负调整，统一使用加法计算'
    }
  }
  options() {
    return this.opts
  }
}

export default ParamsCount